package com.baili.task;

import java.io.UnsupportedEncodingException;
import java.text.ParseException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.baili.dao.user.UserDao;

@Component("taskJob")
public class TaskJob {

	@Autowired
	private UserDao userDao;

	/**
	 * @throws ParseException
	 * @throws UnsupportedEncodingException
	 */
	@Scheduled(cron = "0 0 1 * * ?")
	//@Scheduled(cron = "0 * * * * ?")
	public void interestJob() throws ParseException,
			UnsupportedEncodingException {
		try {
//			userProductLogService.goldInterestCalculation();

		} catch (Exception e) {
			// TODO: handle exception
			System.out.println(e);
		}
	}
}